﻿@model RonYee.Models.LogOnModel

@{
    ViewBag.Title = "Log On";
    Layout = "~/Views/Shared/_LayoutSecondPage.cshtml";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<div id="primary" class="inner group">
   <div class="layout-sidebar-right group">

      <div id="content" role="main" class="group">
        <h2>LOG ON</h2>
        <p>
           请输入您的用户名和密码.如果你还没有ronge账户的话！请点击这里【 @Html.ActionLink("加入我们", "Register")】，让我们携手低碳生活.
        </p>

        @Html.ValidationSummary(true, "登入失败. 请更正错误再试一次！")

        @using (Html.BeginForm()) { 
         <p>
             @Html.ValidationMessageFor(m => m.UserName)
             @Html.ValidationMessageFor(m => m.Password)
         </p>
         <div id="post-16" class="post-16 page type-page status-publish hentry group">
               <p class="form-row form-row-first">
                  <label for="address-first_name">用户名：<span class="required">*</span></label>
                  @Html.TextBoxFor(m => m.UserName, new { @class = "input-text" })
                  
               </p>
               <div class="clear"></div>
               <p class="form-row form-row-first">
                  <label for="address-last_name">密 码：<span class="required">*</span></label>
                  @Html.PasswordFor(m => m.Password, new { @class = "input-text" })
                  
               </p>
               <div class="clear"></div>
               <p class="form-row form-row-first">
                  <label for="address-first_name"></label>
                  @Html.CheckBoxFor(m => m.RememberMe)
                  @Html.LabelFor(m => m.RememberMe)
               </p>
               <div class="clear"></div>
               <input type="submit" class="button" value="Log On" />
         </div>
         <div id="comments">
         </div>
        }
      </div>
      
   </div>
</div>








